// FileLoader.h
#ifndef FILELOADER_H
#define FILELOADER_H

#include <QObject>
#include <QFile>
#include <QTextStream>
#include <QDir>
#include <QFileInfoList>

class FileLoader : public QObject
{
    Q_OBJECT
public:
    explicit FileLoader(QObject *parent = nullptr) : QObject(parent) {}

    Q_INVOKABLE QString readFile(const QString &filePath);
    Q_INVOKABLE QString deleteFile(const QString &filePath);
    Q_INVOKABLE QString deleteAllLogs(const QString &directoryPath);

};

#endif // FILELOADER_H